package com.hps.boot.gradle.controller;

import com.hps.boot.gradle.entity.Order;
import com.hps.boot.gradle.service.OrderService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author heps
 * @since 2020/6/23 19:39
 */
@AllArgsConstructor
@RestController
@RequestMapping("/order")
public class OrderController {

  private final OrderService orderService;

  @GetMapping("/create")
  public Order createOrder() {
    return orderService.createOrder();
  }
}
